package com.dkm.dkmproject.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

/**
 * <p>
 * 服务类型表
 * </p>
 *
 * @author 周佳佳
 * @since 2020-04-26
 */
@TableName("servicetype_tb")
public class ServicetypeTb extends Model<ServicetypeTb> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="sy_id", type= IdType.AUTO)
	private Integer syId;
    /**
     * 类型名称
     */
	@TableField("sy_name")
	private String syName;
    /**
     * 类型排序
     */
	private Integer sort;
    /**
     * 拓展字段1
     */
	private String exp1;
    /**
     * 拓展字段2
     */
	private String exp2;
    /**
     * 拓展字段3
     */
	private String exp3;

	private MultipartFile fileOne;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public MultipartFile getFileOne() {
		return fileOne;
	}

	public void setFileOne(MultipartFile fileOne) {
		this.fileOne = fileOne;
	}

	public Integer getSyId() {
		return syId;
	}

	public void setSyId(Integer syId) {
		this.syId = syId;
	}

	public String getSyName() {
		return syName;
	}

	public void setSyName(String syName) {
		this.syName = syName;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getExp1() {
		return exp1;
	}

	public void setExp1(String exp1) {
		this.exp1 = exp1;
	}

	public String getExp2() {
		return exp2;
	}

	public void setExp2(String exp2) {
		this.exp2 = exp2;
	}

	public String getExp3() {
		return exp3;
	}

	public void setExp3(String exp3) {
		this.exp3 = exp3;
	}

	@Override
	protected Serializable pkVal() {
		return this.syId;
	}

	@Override
	public String toString() {
		return "ServicetypeTb{" +
			"syId=" + syId +
			", syName=" + syName +
			", sort=" + sort +
			", exp1=" + exp1 +
			", exp2=" + exp2 +
			", exp3=" + exp3 +
			"}";
	}
}
